<form action="<?php echo url_for('@asociados_new_save') ?>" method="post" enctype="multipart/form-data" >
<h1>Nuevo Asociado</h1>
<table width="100%" cellpadding="5" cellspacing="5">
  <tr>
    <td>Nombre</td>
    <td><input type="text" id="nombre" name="nombre"  /></td>
  </tr>
  <tr>
    <td>Apellido</td>
    <td><input type="text" id="apellido" name="apellido" /></td>
  </tr>
  <tr>
    <td>Empresa</td>
    <td><input type="text" name="empresa" ></td>
  </tr>

  <tr>
    <td>Direccion</td>
    <td><input type="text" name="direccion" ></td>
  </tr>

  <tr>
    <td>Telefono</td>
    <td><input type="text" name="telefono" ></td>
  </tr>

 <tr>
    <td>Mail</td>
    <td><input type="mail" name="mail" ></td>
  </tr>

  <tr>
    <td>Habilitar</td>
    <td><input type="text" name="habilitar"  placeholder="1:Habilitado  2:desabilitado " ></td>
    <td>1:habilitado 2:desabilitado</td>
  </tr>

     <tr>
    <td>Categoria</td>
      <td>
       <select   name="categoria">
           <option>Sellecione una categoria option>
            <?php foreach ($categoria as $cat){  ?>
           <option  value=" <?php echo $cat->getId();  ?>" > <?php echo $cat->getDescripcion(); ?> </option>
            <?php  } ?>
       </select>
        </td>


  </tr>


  <tr>
    <td>Login</td>
    <td><input type="text" name="login" ></td>
  </tr>
  <tr>
    <td>Contraseña</td>
    <td><input type="contrasena" name="contrasena" ></td>
  </tr>

 <tr>
    <td>Imagen</td>
    <td><input type="file" name="image" /></td>
  </tr>



 



  <tr>
    <td colspan="2" align="center">
    <input type="submit" value="Guardar "/>
    </td>
  </tr>
</table>
</form>